import { createApp } from "vue"
import App from "./App.vue"
// 引入element-plus
import ElementPlus from "element-plus"
import "element-plus/dist/index.css"
// 配置中文
// @ts-ignore
import zhCn from "element-plus/dist/locale/zh-cn.mjs"
import "virtual:svg-icons-register"

// 注册自定义组件为全局的组件
import globalComponent from "./index.ts"

import "@/styles/index.scss"

// 导入路由
import router from "@/router/index.ts"

// 动画animate
import "animate.css"

// 引入permission
import "./permission.ts"

// 引入pinia
import store from "@/store/index.ts"

// 引入vxe-table
import "xe-utils"
import VXETable from "vxe-table"
import "vxe-table/lib/style.css"

const app = createApp(App)
app.use(ElementPlus, {
    locale: zhCn,
})
app.use(globalComponent)
app.use(router)
app.use(store)
app.use(VXETable)

app.mount("#app")
